
package com.milan.analysis.common.exception;


public class WsServiceResponseException extends RuntimeException{

    private String error;
    private String errorCode;
    private boolean isBusinessError;

    public WsServiceResponseException(String msg){
        super(msg);
    }

    public WsServiceResponseException(String msg, Throwable e){
        super(msg, e);
    }


    public WsServiceResponseException(String msg, String errorCode, Throwable e) {
        super(msg, e);
        this.errorCode = errorCode;
        this.isBusinessError = true;
    }


    public String getError() {
        return error;
    }


    public void setError(String error) {
        this.error = error;
    }


    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public boolean isBusinessError() {
        return isBusinessError;
    }

    public void setIsBusinessError(boolean isBusinessError) {
        this.isBusinessError = isBusinessError;
    }
}
